import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'


//createRouter()：为创建路由函数 使用时需记住加入()
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/home?:sid',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/',
      name: 'about',
      component: () => import('../views/AboutView.vue'),
    },
    {
      path: '/DengLu',
      name: 'DengLu',
      component: () => import('../views/DengLu.vue'),
    },
  ],
})

export default router
